/*
	WEB 2.0 AJAX LOADING PANEL 3.0 [SCRIPT ENGINE]
	http://acidmartin.wemakesites.net/#panel
*/

/*
	Web 2.0 AJAX Loading Panel Methods:

	ajaxloadingpanel.init(); // initialize loading panel on page load (turned on by default)
	ajaxloadingpanel.show(); // show the panel during the AJAX request
	ajaxloadingpanel.hide(); // hide the panel when AJAX request is over
*/

/* modify the variables below to change the appearance of Web 2.0 AJAX Loading Panel */
var ajaxLoadingPanelRootFolder = 'Scripts/';

var ajaxLoadingPanelEnabled = true;
var modalOverlayBackground = '#000';
var modalOverlayOpacity = '6' // 0-9
var loadingIndicator = 'Loading_02.gif';
var displayLoadingMessage = true;
var loadingMessage = 'Contacting Server. Please, wait...';
var loadingMessageFontProperties = 'bold 12px "Segoe UI", "Trebuchet MS", Arial, Verdana, Serif';
var loadingMessageColor = '#ffffff';
var loadingMessageAlign = 'center';
var loadingMessageWidth = '240';
var loadingMessageHeight = '46';
var loadingMessageBgColor = '#ff8000';
var loadingIndicatorBackgroundPosition = 'center'; // vertical position | horizontal position
var loadingMessageRoundedCornersRadius = 'large'; // "small", "medium" or "large" 
var loadingMessageRoundedCornersDitherColor = '#777';
var loadingMessageRoundedCornerTopLeft = true;
var loadingMessageRoundedCornerTopRight = true;
var loadingMessageRoundedCornerBottomRight = true;
var loadingMessageRoundedCornerBottomLeft = true;

/* do not modify anything below this line */

var ajaxloadingpanel = {};

function loadingpanel(){if(!ajaxLoadingPanelEnabled){return false;}eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('$8(9+\'2/a/2.b\',\'c\');1 3=4.d;1 5=4.e(\'5\')[0];1 f=\'g://h.i.j/k/l/m.3\';1 n=$6(\'7\');1 o=$6(\'7\');',25,25,'|var|Web20AJAXLoadingPanel|html|document|body|create|div|stylesheet|ajaxLoadingPanelRootFolder|Scripts|css|Web20AjaxLoadingPanelBaseStyleSheet|documentElement|getElementsByTagName|purchaseurl|http|dev|wemakesites|net|Common|Files|PurchaseWeb20LoadingPanel|modaloverlay|loading'.split('|'),0,{}));var _x = false;eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('c b=$L(\'M\');c 3=b.1;3.N=\'O\';3.P=\'Q\';3.R=\'0\';3.S=\'T%\';3.q=\'U\'+\'6\';3.V=\'W 0 0 -X\';3.Y=\'8\'+\'6\';3.Z=\'10\';3.11=\'12 13 j\';3.k=\'j\';3.r=\'14\';b.9(\'e\',\'f\');b.9(\'l\',\'15\');3.s=\'16 17 "18 19", "1a 1b", 1c, 1d, 1e\';b.t=\'1f 1g 1h u v w 2.0 x y z.<1i />1j 1k <a 1l="\'+1m+\'" 1="k: j;" 1n="1o A 1p 1q v w 2.0 x y z B C m D">1r</a> A 1s u B C m D 1t 1u 1v 1w.\';4.9(\'l\',\'1x\');4.9(\'e\',\'f\');5.9(\'l\',\'g\');5.9(\'e\',\'f\');4.1.E=1y;4.1.F=1z.1A+\'6\';G(d!=\'0\'){4.1.1B=\'1C(H=\'+d+\'0)\';4.1.1D=\'"1E:1F.1G.1H(1I=\'+d+\'0)"\';4.1.H=\'.\'+d;4.1.1J=\'.\'+d}5.t=1K;5.1.E=1L;5.1.q=I+\'6\';5.1.F=J+\'6\';5.1.1M=\'-\'+I/2+\'6\';5.1.1N=\'-\'+J/2+\'6\';n.o(4);n.o(5);G(!1O){n.o(b)}c 1P=$h(\'g\');1Q.1R(\'g\',1S,1T,1U,1V,1W,1X);c 7=$h(\'K\').1;7.k=1Y;7.s=1Z;7.r=20;7.21=$h(\'K\').22+\'6\';7.23=\'24(\\\'\'+25+\'/26/27/\'+28+\'\\\')\';7.29=2a;7.2b=\'2c-2d\';c p=$h(\'g\').2e(\'*\');m(i=0;i<p.2f;i++){p[i].9(\'e\',\'f\')}',62,140,'|style||trialstyle|modaloverlay|loading|px|contentstyle||setAttribute||trialmessage|var|modalOverlayOpacity|unselectable|on|ajaxLoadingPanelLoadingMessage|get||white|color|id|for|body|appendChild|innerelements|width|textAlign|font|innerHTML|version|of|Web|AJAX|Loading|Panel|the|via|PayPal|USD20|backgroundColor|height|if|opacity|loadingMessageWidth|loadingMessageHeight|ajaxLoadingPanelLoadingMessage_content|create|div|position|fixed|zIndex|50001|top|left|50|500|margin|20px|250px|padding|background|red|border|solid|2px|center|ajaxLoadingPanelTrialMessage|bold|12px|Segoe|UI|Trebuchet|MS|Arial|Verdana|Serif|This|is|trial|br|You|may|href|purchaseurl|title|Purchase|Full|Version|purchase|full|to|remove|this|message|ajaxLoadingPanelModalOverlay|modalOverlayBackground|html|scrollHeight|filter|alpha|msFilter|progid|DXImageTransform|Microsoft|Alpha|Opacity|mozOpacity|loadingMessage|loadingMessageBgColor|marginLeft|marginTop|_x|loadbox|roundedcornerspaneljs|demand|loadingMessageRoundedCornersRadius|loadingMessageRoundedCornersDitherColor|loadingMessageRoundedCornerTopLeft|loadingMessageRoundedCornerTopRight|loadingMessageRoundedCornerBottomRight|loadingMessageRoundedCornerBottomLeft|loadingMessageColor|loadingMessageFontProperties|loadingMessageAlign|lineHeight|offsetHeight|backgroundImage|url|ajaxLoadingPanelRootFolder|Web20AJAXLoadingPanel|LoadingIndicators|loadingIndicator|backgroundPosition|loadingIndicatorBackgroundPosition|backgroundRepeat|no|repeat|getElementsByTagName|length'.split('|'),0,{}));eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('7.8=9(){2(a){$0(\'b\').1.3=\'4\';2(c){$0(\'5\').1.3=\'4\';$0(\'5\').1.d=\'e\'}2($0(\'6\')!=f){$0(\'6\').1.3=\'4\'}}};',16,16,'get|style|if|display|block|ajaxLoadingPanelLoadingMessage|ajaxLoadingPanelTrialMessage|ajaxloadingpanel|show|function|ajaxLoadingPanelEnabled|ajaxLoadingPanelModalOverlay|displayLoadingMessage|cursor|wait|null'.split('|'),0,{}));eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('7.8=9(){4(a){$0(\'b\').1.2=\'3\';$0(\'5\').1.2=\'3\';$0(\'5\').1.c=\'\';4($0(\'6\')!=d){$0(\'6\').1.2=\'3\'}}}',14,14,'get|style|display|none|if|ajaxLoadingPanelLoadingMessage|ajaxLoadingPanelTrialMessage|ajaxloadingpanel|hide|function|ajaxLoadingPanelEnabled|ajaxLoadingPanelModalOverlay|cursor|null'.split('|'),0,{}));eval(function(p,a,c,k,e,r){e=String;if(!''.replace(/^/,String)){while(c--)r[c]=k[c]||c;k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('0(1){2.3()}',4,4,'if|ajaxLoadingPanelEnabled|ajaxloadingpanel|hide'.split('|'),0,{}));}

function $tag(tagName)
{
	return document.getElementsByTagName(tagName);
}

function $create(element)
{
	return document.createElement(element);
}

function $get(stringId)
{
	return document.getElementById(stringId);
}

function $stylesheet(file, id)
{
	var stylesheet = document.createElement('link');

	stylesheet.setAttribute('type', 'text/css');
	stylesheet.setAttribute('rel', 'stylesheet');
	stylesheet.setAttribute('href', file);
	stylesheet.setAttribute('id', id);
	
	if($get(id) == null)
	{
		document.getElementsByTagName('head')[0].appendChild(stylesheet);
	}
}

function $script(file, id)
{
	var script = document.createElement('script');
	
	script.setAttribute('type', 'text/javascript');
	script.setAttribute('src', file);
	script.setAttribute('id', id);
	
	if($get(id) == null)
	{
		document.getElementsByTagName('head')[0].appendChild(script);
	}
}

ajaxloadingpanel.init = function()
{
	if(ajaxLoadingPanelEnabled)
	{
		if (window.addEventListener)
		{
			window.addEventListener('load', function(e){ loadingpanel(); }, false);
		}
		if (window.ActiveXObject)
		{
			window.attachEvent('onload', function(e){ loadingpanel(); });
		}
	}
}

ajaxloadingpanel.init();